-
Notifications
You must be signed in to change notification settings - Fork 36
/
OutboundRouter`1.cs
26 lines (22 loc) · 1.06 KB
/
OutboundRouter`1.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright (c) 2020 Sergio Aquilini
// This code is licensed under MIT license (see LICENSE file for details)
using System.Collections.Generic;
using Silverback.Messaging.Messages;
namespace Silverback.Messaging.Outbound.Routing
{
/// <inheritdoc cref="IOutboundRouter{TMessage}" />
public abstract class OutboundRouter<TMessage> : IOutboundRouter<TMessage>
{
/// <inheritdoc cref="IOutboundRouter.Endpoints" />
public abstract IEnumerable<IProducerEndpoint> Endpoints { get; }
/// <inheritdoc cref="IOutboundRouter{TMessage}.GetDestinationEndpoints(TMessage,MessageHeaderCollection)" />
public abstract IEnumerable<IProducerEndpoint> GetDestinationEndpoints(
TMessage message,
MessageHeaderCollection headers);
/// <inheritdoc cref="IOutboundRouter.GetDestinationEndpoints" />
IEnumerable<IProducerEndpoint> IOutboundRouter.GetDestinationEndpoints(
object message,
MessageHeaderCollection headers) =>
GetDestinationEndpoints((TMessage)message, headers);
}
}